

package pdsgameserver;

import java.io.Serializable;
import java.util.Properties;
import java.util.logging.Level;
import java.util.logging.Logger;

//import com.sun.sgs.app.AppContext;
import com.sun.sgs.app.AppListener;
import com.sun.sgs.app.ClientSession;
import com.sun.sgs.app.ClientSessionListener;

public class TestServer  implements Serializable, AppListener
{
	/** The version of the serialized form of this class. */
    private static final long serialVersionUID = 1L;

    /** The {@link Logger} for this class. */
    private static final Logger logger = Logger.getLogger(TestServer.class.getName());

    /** The total number of login events. */
    private int loginCount = 0;
	
	public void initialize(Properties props)
	{
		//System.out.println("Hello World");
	}
	
	public ClientSessionListener loggedIn(ClientSession session) 
	{
        loginCount++;
        logger.log(Level.INFO, "User {0} has logged in", session.getName());
		return new Player(session);
    }
	
}
